<?php
$this->headTitle('Đăng nhập');
$formLogin->setAttribute('action', $this->url('user-login'));
$formLogin->prepare();
?>

<div class="wrap">
    <div class="header">
        <?php echo $this->partial('header'); ?>
    </div>
    <div class="main">
        <div class="content">
            <div class="content_top">
                <div class="heading">
                    <h3>Đăng nhập</h3>
                </div>
                <div class="clear"></div>
            </div>
            <div class="section group">
                <div class="col span_1_of_2">
                    <div class="contact-form">

                        <?php echo $this->form()->openTag($formLogin); ?>

                        <div class="input-group">
                            <div class="form-label">
                                <?php echo $this->formLabel($formLogin->get('member_email')); ?>
                            </div>
                            <div class="form-input">
                                <?php echo $this->formInput($formLogin->get('member_email')); ?>
                                <?php if ($this->formElementErrors($formLogin->get('member_email'))) { ?>
                                    <div class="form-error">
                                        <?php echo $this->formElementErrors($formLogin->get('member_email')); ?>
                                    </div>
                                <?php } ?>
                            </div>

                        </div>
                        <div class="input-group">
                            <div class="form-label">
                                <?php echo $this->formLabel($formLogin->get('member_password')); ?>
                            </div>
                            <div class="form-input">
                                <?php echo $this->formPassword($formLogin->get('member_password')); ?>
                                <?php if ($this->formElementErrors($formLogin->get('member_password'))) { ?>
                                    <div class="form-error">
                                        <?php echo $this->formElementErrors($formLogin->get('member_password')); ?>
                                    </div>
                                <?php } ?>
                                <?php if (isset($message)) { ?>
                                    <div class="form-error">
                                        <?php echo $message; ?>
                                    </div>
                                <?php } ?>
                            </div>
                        </div>
                        <div class="input-group">
                            <div class="form-label">
                                <?php echo $this->formLabel($formLogin->get('remember_me')); ?>
                            </div>
                            <div class="form-input">
                                <?php echo $this->formCheckbox($formLogin->get('remember_me')); ?>
                                <?php if ($this->formElementErrors($formLogin->get('remember_me'))) { ?>
                                    <div class="form-error">
                                        <?php echo $this->formElementErrors($formLogin->get('remember_me')); ?>
                                    </div>
                                <?php } ?>
                            </div>
                        </div>
                        <div class="input-group">
                            <div class="form-button">
                                <?php echo $this->formSubmit($formLogin->get('login')); ?>
                            </div>
                        </div>
                        <?php echo $this->form()->closeTag(); ?>
                    </div>
                </div>
            </div>		
        </div> 
    </div>
</div>